<? $attributes = array('class' => 'email', 'id' => 'checknew');
    echo form_open('lienhe/upload/dels', $attributes);?>
<table class="admindata" width="100%">
    <thead>
        <tr>
            <th colspan="6"> <input type="submit" onclick="return verify_del();" name="btn_submit" value="Xóa">
                Hiện có
                <?=$num?>
                bài viết
                <?=$pagination?>
            </th>
        </tr>
        <tr>
            <th class="checkbox"><input type="checkbox" name="sa" id="sa" onclick="check_chose('sa', 'ar_id[]', 'checknew')" /></th>
            <th>Mẫu</th>
            <th>Người gởi</th>
            <th>Nội dung</th>
            <th class="publish">Ngày gởi</th>
            <th class="publish">Chức năng</th>
        </tr>
    </thead>
    <?
        $k=1;
        $i=1;
        foreach($list as $rs):
			$lb_content = str_limit($rs->lb_content,400);
			$bold = empty($rs->is_read)? 'bold' : '' ;
			$lb_image = $rs->lb_image? '<img src="'.base_url_site().'uploads/upload/'.$rs->lb_image.'" width=300px />' : '';
        ?>
    <tr class="row<?=$k?> <?=$bold?>">
        <td><input type="checkbox" name="ar_id[]" value="<?=$rs->id?>"></td>
        <td><?=$lb_image?></td>
        <td><?=$rs->lb_cusname ?><br /><?=$rs->lb_cusmail ?><br /><?=$rs->nb_phone ?></td>
        <td><?=$lb_content?></td>
        <td align="center"><?=datevn($rs->dt_create)?></td>
        <td align="center"><?=icon_view('lienhe/upload/view/'.$rs->id)?>
            <span id="publish<?=$rs->id?>"> <?=icon_active("'lienhe_upload'","'id'",$rs->id,$rs->bl_active)?> </span>
            <?=icon_del('lienhe/upload/del/'.$rs->id.'/'.$start)?></td>
    </tr>
    <?
        $k=1-$k;
        $i++;
        endforeach;
	?>
    <tfoot>
    <td colspan="6"><input type="submit" onclick="return verify_del();" name="btn_submit" value="Xóa">
            Hiện có
            <?=$num?>
            bài viết
            <?=$pagination?></td>
            </tfoot>
</table>
<?=form_close()?>
